package com.ksana.core;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class PathResource implements Resource {
    private String path;

    public PathResource(String path) {
        this.path = path;
    }

    @Override
    public InputStream getInputStream() throws FileNotFoundException {
        return new FileInputStream(new File(path));
    }
}
